package com.car.mapper;

import com.car.entity.Detailedlistofrentalcharges;
import com.car.vo.DetailedlistofrentalchargesVo;
import com.car.vo.orderVo;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface DetailedlistofrentalchargesMapper {
    int deleteByPrimaryKey(Integer rentalCostID);
  /**
   * 添加
      * @Title: insert
      * @Description: TODO(这里用一句话描述这个方法的作用)
      * @param @param record
      * @param @return    参数
      * @return int    返回类型
      * @throws
   */
    int insert(Detailedlistofrentalcharges record);
/**
 * 查詢訂單金額
    * @Title: selectByPrimaryKey
    * @Description: TODO(这里用一句话描述这个方法的作用)
    * @param @param rentalCostID
    * @param @return    参数
    * @return Detailedlistofrentalcharges    返回类型
    * @throws
 */
    DetailedlistofrentalchargesVo selectByPrimaryKey(String orderId);

    List<Detailedlistofrentalcharges> selectAll();

    int updateByPrimaryKey(Detailedlistofrentalcharges record);
	int addDetail(DetailedlistofrentalchargesVo detaillist);
    
    /**
     * 根据用户选择的优惠卷来更改价格
        * @Title: updTotalAndCouponUsageToOrderId
        * @Description: TODO(这里用一句话描述这个方法的作用)
        * @param @param orderId
        * @param @return    参数
        * @return int    返回类型
        * @throws
     */
    int updTotalAndCouponUsageToOrderId(@Param("total")Integer total,
    		@Param("couponUsage")Integer couponUsage,
    		@Param("orderId")String orderId);
}